<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
  <link rel="stylesheet" href="../../static/BOSGeo/BOSGeo.css" />
  <title>设置底图颜色</title>
  <style>
    html {
      font-size: 12px;
    }

    html,
    body,
    #mapContainer {
      height: 100%;
      width: 100%;
      padding: 0;
      margin: 0;
    }

  </style>
</head>

<body>
  <div id="mapContainer"></div>
  <script src="../../static/BOSGeo/BOSGeo.js"></script>
  <script>
    var map = new BOSGeo.Map('mapContainer', {
    mapType: BOSGeo.TDT_IMAGERY
    });
    // 默认视角
    BOSGeo.GeoUtil.flyHome();
    // BOSGeo.GeoUtil.switchBaseColor('#fff', 0);
    BOSGeo.GeoUtil.switchBaseColor(0.0, 0.0, 0.5, 1.0);
    map.imageryLayers.remove(map.imageryLayers.get(0)); // 删除影像图
  </script>
</body>

</html>